<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo</title>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
    <style type="text/css">
        html {
            height: 100%
        }

        body {
            height: 100%;
            margin: 0;
            padding: 0;
        }
    </style>
</head>
<body>


</body>
<script type="text/javascript">

    function getSearch() {
        const obj = {};
        let search = location.search;
        search = search.substring(1);
        const arr = search.split("&");
        for (const arrKey of arr) {
            const keyArr = arrKey.split("=");
            obj[keyArr[0]] = keyArr[1];
        }
        return obj;
    }

    const obj = getSearch();
    console.log(obj);
    location.href = "https://uri.amap.com/marker?position=" + obj.location;

</script>
</html>